/*
 * freessmcfg.h - configure FreeSSM dialog
 *
 * Copyright (C) 2008-2010 Comer352l
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef FREESSMCFG_H
#define FREESSMCFG_H

#include <QWidget>
#include <QSettings>
#include "freessm/src/AbstractDiagInterface.h"
#include "freessm/src/J2534DiagInterface.h"
#include "freessm/src/SerialPassThroughDiagInterface.h"
#include "freessm/src/linux/serialCOM.h"
#include "freessm/src/SSMP1communication.h"
#include "freessm/src/SSMP2communication.h"

#include "qcarpcdialog.h"

namespace Ui {
    class freessmcfg;
}

class freessmcfg : public QWidget
{
    Q_OBJECT

public:
    explicit freessmcfg(QWidget *parent = 0);
    ~freessmcfg();

private:
    Ui::freessmcfg *ui;
    QSettings *settings;
    AbstractDiagInterface::interface_type newinterfacetype;
    QString newinterfacefilename;
    QStringList _J2534libraryPaths;
    myMessage *messages;

private slots:
    void on_interfaceType_comboBox_activated(int);
    void on_interfaceName_comboBox_activated(int);
    void on_testinterface_pushButton_pressed();

};

#endif // FREESSMCFG_H
